﻿<Window x:Class="Whitepad.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Whitepad" Height="480" Width="640" WindowState="Maximized" WindowStyle="None" Icon="whitepad.ico" Loaded="Window_Loaded" Closing="Window_Closing">
	<Window.Resources>
		<SolidColorBrush x:Key="highlight" Color="#BFBFBF" />
		<Style TargetType="Button">
			<Setter Property="Background" Value="#DFDFDF" />
			<Setter Property="Width" Value="40" />
			<Setter Property="Height" Value="40" />
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<Rectangle Fill="{TemplateBinding Background}" />
							<ContentPresenter />
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>
    <DockPanel>
		<DockPanel LastChildFill="False" Background="#DFDFDF" DockPanel.Dock="Top">
			<Button x:Name="btnNew" Click="btnNew_Click">
				<Image Source="new.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnOpen" Click="btnOpen_Click">
				<Image Source="open.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnSave" Click="btnSave_Click">
				<Image Source="save.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnSaveAs" Click="btnSaveAs_Click">
				<Image Source="saveas.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnScreenshot" Click="btnScreenshot_Click">
				<Image Source="screenshot.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnClose" Click="btnClose_Click" DockPanel.Dock="Right">
				<Image Source="close.png" Width="32" Height="32" />
			</Button>
		</DockPanel>
		<DockPanel LastChildFill="False" Background="#DFDFDF" DockPanel.Dock="Bottom">
			<Button x:Name="btnBlack" Click="btnBlack_Click">
				<Image Source="black.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnRed" Click="btnRed_Click">
				<Image Source="red.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnGreen" Click="btnGreen_Click">
				<Image Source="green.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnBlue" Click="btnBlue_Click">
				<Image Source="blue.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnEraser" Click="btnEraser_Click">
				<Image Source="eraser.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnMove" Click="btnMove_Click">
				<Image Source="move.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnZoomrot" Click="btnZoomrot_Click">
				<Image Source="zoomrot.png" Width="32" Height="32" />
			</Button>
			<Button x:Name="btnMulti" Click="btnMulti_Click">
				<Image Source="multi.png" Width="32" Height="32" />
			</Button>
		</DockPanel>
		<InkCanvas x:Name="inkCanvas"
				   MouseDown="inkCanvas_MouseDown" MouseMove="inkCanvas_MouseMove" MouseUp="inkCanvas_MouseUp"
				   ManipulationDelta="inkCanvas_ManipulationDelta" />
	</DockPanel>
</Window>
